<div class="formPanel">
    <fieldset>
        <legend>Tìm kiếm</legend>
        <form id="search_form_contact" action="<?php echo base_url(); ?>admin_combo/contact/searchdata" method="post">
            <label>Họ tên:</label>
            <input type="text" id="txtFullname" name="txtFullname" size="30" value="" /><br />
            <label>Email:</label>
            <input type="text" id="txtEmail" name="txtEmail" size="30" value="" /><br />
            <label>Từ ngày:</label>
            <input type="text" id="txtDateFrom" name="txtDateFrom" /><br />
            <label>Đến ngày:</label>
            <input type="text" id="txtDateTo" name="txtDateTo" /><br />
            <input type="submit" class="button" id="btnSearchContact" name="btnSearchContact" value="Tìm Kiếm" />
        </form>
    </fieldset>
</div>
<div align="center">
    <div id="recorddata">
        <table>
            <tr>
                <td class="title">Stt</td>
                <td class="title">Ngày</td>
                <td class="title">Họ Tên</td>
                <td class="title">Email</td>
                <td class="title">Nội Dung</td>
                <td class="title">Edit</td>
                <td class="title">Del</td>
            </tr>
            <?php
                if($info != "empty") {
                    $stt=0;
                    foreach($info as $item) {
                        $stt++;
                        echo "<tr>";
                        echo    "<td>$stt</td>";
                        echo    "<td>$item[con_date]</td>";
                        echo    "<td>$item[fullname]</td>";
                        echo    "<td>$item[email]</td>";
                        echo    "<td>$item[content]</td>";
                        echo    "<td class='action edit'><a href='".base_url()."admin_combo/contact/edit/$item[con_id]' id='edit_$item[con_id]'><strong>Edit</strong></a></td>";
                        echo    "<td class='action del'><a href='".base_url()."admin_combo/contact/del/$item[con_id]' id='del_$item[con_id]' 
                                    onclick='return confirm_delete(\"Bạn có chắc chắn muốn xóa?\");'><strong>Del</strong></a></td>";
                        echo "</tr>";
                    }
                }else
                    echo "<tr><td colspan='7'><font style='color: #99CC00; font-weight: bold;'>$info</font></td></tr>"
            ?>
        </table>
    </div>
<?php
    echo $this->pagination->create_links();
?>
<table width="100%">
    <tr>
        <td class="title">
            <a href="<?php echo base_url(); ?>admin_combo/contact/add" class="add">Thêm liên hệ mới</a>
        </td>
    </tr>
</table>
</div>